<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><strong>FileUtils</strong></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>FileUtils</code></h1>
<p>文件相关接口通过 ca.sharedFileUtils() 获取</p>
<p>

</p>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#FileUtils:purgeCachedEntries">FileUtils:purgeCachedEntries ()</a></td>
	<td class="summary">清理搜索文件缓存，一般是更新资源后进行搜索前调用</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getFileString">FileUtils:getFileString (filePath)</a></td>
	<td class="summary">获取文件的字符串内容</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getFileData">FileUtils:getFileData (filePath, mode)</a></td>
	<td class="summary">获取文件的userdata内容</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getFileDataFromZip">FileUtils:getFileDataFromZip (zipFilePath, fileName)</a></td>
	<td class="summary">获取压缩包内的指定文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:fullPathForFilename">FileUtils:fullPathForFilename (fileName)</a></td>
	<td class="summary">根据文件名获取全局路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:loadFilenameLookupDictionaryFromFile">FileUtils:loadFilenameLookupDictionaryFromFile (plistfile)</a></td>
	<td class="summary">解析plist文件内容并加载里面的文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setFilenameLookupDictionary">FileUtils:setFilenameLookupDictionary (pathmap)</a></td>
	<td class="summary">设置文件名映射表</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:fullPathFromRelativeFile">FileUtils:fullPathFromRelativeFile (filename, relativeFile)</a></td>
	<td class="summary">相对路径转为绝对路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setSearchResolutionsOrder">FileUtils:setSearchResolutionsOrder (resolutions)</a></td>
	<td class="summary">设置搜索分辨率的顺序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:addSearchResolutionsOrder">FileUtils:addSearchResolutionsOrder (resolution, front)</a></td>
	<td class="summary">添加搜索分辨率的顺序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getSearchResolutionsOrder">FileUtils:getSearchResolutionsOrder ()</a></td>
	<td class="summary">获取搜索分辨率的顺序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setSearchPaths">FileUtils:setSearchPaths (pathes)</a></td>
	<td class="summary">设置搜索路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setDefaultResourceRootPath">FileUtils:setDefaultResourceRootPath (path)</a></td>
	<td class="summary">设置默认根资源路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:addSearchPath">FileUtils:addSearchPath (path)</a></td>
	<td class="summary">添加搜索路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getSearchPaths">FileUtils:getSearchPaths ()</a></td>
	<td class="summary">获取搜索路径列表</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getWritablePath">FileUtils:getWritablePath ()</a></td>
	<td class="summary">获取可写路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setWritablePath">FileUtils:setWritablePath (path)</a></td>
	<td class="summary">设置可写路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:isPopupNotify">FileUtils:isPopupNotify ()</a></td>
	<td class="summary">文件等错误是否弹出提示</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:setPopupNotify">FileUtils:setPopupNotify (notify)</a></td>
	<td class="summary">设置文件等错误是否弹出提示</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:writeStringToFile">FileUtils:writeStringToFile (data, path)</a></td>
	<td class="summary">写字符串到文件中</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:writeDataToFile">FileUtils:writeDataToFile (data, path)</a></td>
	<td class="summary">写数据到文件中</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:isFileExist">FileUtils:isFileExist (path)</a></td>
	<td class="summary">判断文件是否存在</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getFileExtension">FileUtils:getFileExtension (path)</a></td>
	<td class="summary">获取文件扩展名</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:isAbsolutePath">FileUtils:isAbsolutePath (path)</a></td>
	<td class="summary">判断路径是否是绝对路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:isDirectoryExist">FileUtils:isDirectoryExist (path)</a></td>
	<td class="summary">判断路径是否存在</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:createDirectory">FileUtils:createDirectory (path)</a></td>
	<td class="summary">创建路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:removeDirectory">FileUtils:removeDirectory (path)</a></td>
	<td class="summary">删除路径</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:removeFile">FileUtils:removeFile (path)</a></td>
	<td class="summary">删除文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:renameFile">FileUtils:renameFile (oldName, newName)</a></td>
	<td class="summary">重命名文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#FileUtils:getFileSize">FileUtils:getFileSize (path)</a></td>
	<td class="summary">获取文件大小</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "FileUtils:purgeCachedEntries"></a>
    <strong>FileUtils:purgeCachedEntries ()</strong>
    </dt>
    <dd>
    清理搜索文件缓存，一般是更新资源后进行搜索前调用







</dd>
    <dt>
    <a name = "FileUtils:getFileString"></a>
    <strong>FileUtils:getFileString (filePath)</strong>
    </dt>
    <dd>
    获取文件的字符串内容


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">filePath</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        content
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:getFileData"></a>
    <strong>FileUtils:getFileData (filePath, mode)</strong>
    </dt>
    <dd>
    获取文件的userdata内容


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">filePath</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">mode</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">userdata</span></span>
        content
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:getFileDataFromZip"></a>
    <strong>FileUtils:getFileDataFromZip (zipFilePath, fileName)</strong>
    </dt>
    <dd>
    获取压缩包内的指定文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">zipFilePath</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">fileName</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">userdata</span></span>
        content
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:fullPathForFilename"></a>
    <strong>FileUtils:fullPathForFilename (fileName)</strong>
    </dt>
    <dd>
    根据文件名获取全局路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">fileName</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        path
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:loadFilenameLookupDictionaryFromFile"></a>
    <strong>FileUtils:loadFilenameLookupDictionaryFromFile (plistfile)</strong>
    </dt>
    <dd>
    解析plist文件内容并加载里面的文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">plistfile</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:setFilenameLookupDictionary"></a>
    <strong>FileUtils:setFilenameLookupDictionary (pathmap)</strong>
    </dt>
    <dd>
    设置文件名映射表


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">pathmap</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:fullPathFromRelativeFile"></a>
    <strong>FileUtils:fullPathFromRelativeFile (filename, relativeFile)</strong>
    </dt>
    <dd>
    相对路径转为绝对路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">filename</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">relativeFile</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:setSearchResolutionsOrder"></a>
    <strong>FileUtils:setSearchResolutionsOrder (resolutions)</strong>
    </dt>
    <dd>
    设置搜索分辨率的顺序


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">resolutions</span>
            <span class="types"><span class="type">stringArray</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:addSearchResolutionsOrder"></a>
    <strong>FileUtils:addSearchResolutionsOrder (resolution, front)</strong>
    </dt>
    <dd>
    添加搜索分辨率的顺序


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">resolution</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">front</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:getSearchResolutionsOrder"></a>
    <strong>FileUtils:getSearchResolutionsOrder ()</strong>
    </dt>
    <dd>
    获取搜索分辨率的顺序



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">stringArray</span></span>
        resolutions
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:setSearchPaths"></a>
    <strong>FileUtils:setSearchPaths (pathes)</strong>
    </dt>
    <dd>
    设置搜索路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">pathes</span>
            <span class="types"><span class="type">stringArray</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:setDefaultResourceRootPath"></a>
    <strong>FileUtils:setDefaultResourceRootPath (path)</strong>
    </dt>
    <dd>
    设置默认根资源路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:addSearchPath"></a>
    <strong>FileUtils:addSearchPath (path)</strong>
    </dt>
    <dd>
    添加搜索路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:getSearchPaths"></a>
    <strong>FileUtils:getSearchPaths ()</strong>
    </dt>
    <dd>
    获取搜索路径列表



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">stringArray</span></span>
        pathes
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:getWritablePath"></a>
    <strong>FileUtils:getWritablePath ()</strong>
    </dt>
    <dd>
    获取可写路径



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        path
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:setWritablePath"></a>
    <strong>FileUtils:setWritablePath (path)</strong>
    </dt>
    <dd>
    设置可写路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:isPopupNotify"></a>
    <strong>FileUtils:isPopupNotify ()</strong>
    </dt>
    <dd>
    文件等错误是否弹出提示



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        notify
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:setPopupNotify"></a>
    <strong>FileUtils:setPopupNotify (notify)</strong>
    </dt>
    <dd>
    设置文件等错误是否弹出提示


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">notify</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "FileUtils:writeStringToFile"></a>
    <strong>FileUtils:writeStringToFile (data, path)</strong>
    </dt>
    <dd>
    写字符串到文件中


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">data</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:writeDataToFile"></a>
    <strong>FileUtils:writeDataToFile (data, path)</strong>
    </dt>
    <dd>
    写数据到文件中


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">data</span>
            <span class="types"><span class="type">userdata</span></span>



        </li>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:isFileExist"></a>
    <strong>FileUtils:isFileExist (path)</strong>
    </dt>
    <dd>
    判断文件是否存在


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bExist
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:getFileExtension"></a>
    <strong>FileUtils:getFileExtension (path)</strong>
    </dt>
    <dd>
    获取文件扩展名


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        suffix
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:isAbsolutePath"></a>
    <strong>FileUtils:isAbsolutePath (path)</strong>
    </dt>
    <dd>
    判断路径是否是绝对路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isAbsolute
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:isDirectoryExist"></a>
    <strong>FileUtils:isDirectoryExist (path)</strong>
    </dt>
    <dd>
    判断路径是否存在


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isExist
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:createDirectory"></a>
    <strong>FileUtils:createDirectory (path)</strong>
    </dt>
    <dd>
    创建路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:removeDirectory"></a>
    <strong>FileUtils:removeDirectory (path)</strong>
    </dt>
    <dd>
    删除路径


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:removeFile"></a>
    <strong>FileUtils:removeFile (path)</strong>
    </dt>
    <dd>
    删除文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:renameFile"></a>
    <strong>FileUtils:renameFile (oldName, newName)</strong>
    </dt>
    <dd>
    重命名文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">oldName</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">newName</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "FileUtils:getFileSize"></a>
    <strong>FileUtils:getFileSize (path)</strong>
    </dt>
    <dd>
    获取文件大小


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        size
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
